package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductSummaryMapper;
import com.hcb.micro.dto.ProductSummary;
import com.hcb.micro.service.IProductSummaryService;

@Service("ProductSummaryService")
public class ProductSummaryServiceImpl implements IProductSummaryService {

	@Autowired
	ProductSummaryMapper productSummaryMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return productSummaryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductSummary record) {
		return productSummaryMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductSummary record) {
		return productSummaryMapper.insertSelective(record);
	}

	@Override
	public ProductSummary selectByPrimaryKey(Integer id) {
		return productSummaryMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductSummary record) {
		return productSummaryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductSummary record) {
		return productSummaryMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductSummary> selectByPara(Map<String, Object> para) {
		return productSummaryMapper.selectByPara(para);
	}

}
